﻿using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class DisturbClick : MonoBehaviour {

    public GameObject disturb;
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}
    public void DisturbOnClick()
    {
        Debug.Log(disturb.transform.Find("Label").GetComponent<UILabel>().text);
        int active=chengyuManager.Instance.AddAnswers(disturb.transform.Find("Label").GetComponent<UILabel>().text);
        if(active==1)
        disturb.transform.Find("Label").gameObject.SetActive(false);
        
            
    }
}
